// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import  createPersistedState  from 'pinia-plugin-persistedstate'

const pinia = createPinia();
pinia.use(createPersistedState);
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'

import App from './App.vue'
import router from './router'

import axios from 'axios'
axios.defaults.baseURL='http://localhost:5137'
//axios.defaults.headers.common["Authorization"] = "Bearer " + window.localStorage.getItem("token");

const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
  })
 
app.use(createPinia())
app.use(router)
//app.provide('axios',axios)

app.mount('#app')
